<html>

<head>
	<title>Web activity manager - Aggiungi operatori </title>
	<link href="menu/menu.css" rel="stylesheet" type="text/css"/>
	<script src="xmlLoader.js" type="text/javascript"></script>
	<script src="menu_and_sessiondata.js" type="text/javascript"></script>
	<script type="text/javascript">
		
		function init(){
		
			loadSessionData();
			generateMenu();
		}	
		
	</script>
	<link href="style/style.css" rel="stylesheet" type="text/css"/>
</head>

<body onload="init()">
	<div class = "header">
		<div class = "headerban">
			<h1><center> WEB ACTIVITY MANAGER </center></h1>
		</div>
		
		<div class = "session_data">
			<table>
				<tr>
					<td><b>Utente: </b></td>
					<td><div id = "current_user"></div>
					</td>
				</tr>
				<tr>
					<td>
						<b>Ruolo: </b></td>
					<td><div id = "current_role" ></div>
					</td>
				</tr>
				<tr>
					<td>
						<b>Progetto: </b></td>
					<td><div id = "current_project"></div>
					</td>
				</tr>
				<tr>
					<td>
						<a href="http://localhost:4444/logout"><input type="button" value="logout"/></a>
					</td>
				</tr>
			</table>
		</div>
	</div>
	
	<!-- MENU -->
	<div class = "menu">
		<ul id="menu">
		</ul>
	</div>
	
	</div>
	<br>
	<br>

	
	<div class = "funct_name">
		<h2><center> Aggiungi operatori al progetto </center></h2>
	</div>
	
	<!-- FORM DI AGGIUNTA DI UN NUOVO OPERATORE -->
		<form action="http://localhost:4444/add_operatore">
			<fieldset>
				<legend> Aggiungi operatore </legend>
				<table>
					<tr>
						<td><label for="username"> Username </label> </td>
							<td><input type="text" name="username" required id="username"/></td>
						</td>
					</tr>
					<tr>
						<td><label for="password"> Password </label> </td>
							<td><input type="password" name="password" required id="password"/></td>
						</td>
					</tr>
					<tr>
						<td><label for="role"> Ruolo </label> </td>
							<td><input type="text" name="role" required id="role"/></td>
						</td>
					</tr>
				</table>
				<br>
				<input type="submit" value="Aggiungi"/>
			</fieldset>
		</form>
	
</body>

</html>